<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('password_answer/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif;
?>
        <table>
          <?php echo $form; ?>
          
          <tr>
            <td colspan="2">
              <?php echo $form->renderHiddenFields(false) ?>
             
              &nbsp;<a href="<?php echo url_for('password_answer/index') ?>">Back to list</a>
              <input type="submit" value="Save" />
            </td>
          </tr>
      </table>
</form>